@extends('layouts.layout')

@section('title', '角色编辑' . $role->first_name)

@section('content')
    <div class="row">
        <div class="col-md-5">
            <h3>编辑角色{{ $role->name }}</h3>
        </div>
        <div class="col-md-7 page-action text-right">
            <a href="{{ route('roles.index') }}" class="btn btn-default btn-sm"> <i class="fa fa-arrow-left"></i> 返回</a>
        </div>
    </div>

    <style>
        .table td, .table th{ vertical-align:baseline; }
    </style>
    <div class="row clearfix">
        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="card">
                <div class="body table-responsive">
                    <div class="wrapper wrapper-content animated fadeInRight" style="margin-top: 10px;">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="ibox float-e-margins">
                                    <div class="ibox-content">
                                    {!! Form::model($role, ['method' => 'PUT', 'route' => ['roles.update',  $role->id ] ]) !!}
                                    @include('role._form')
                                    <!-- Submit Form Button -->
                                        {!! Form::submit('保存修改', ['class' => 'btn btn-primary']) !!}
                                        {!! Form::close() !!}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('js')
    <script src="{{ asset('assets/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.js') }}"></script>
    <script src="{{ asset('assets/plugins/jquery-inputmask/jquery.inputmask.bundle.js') }}"></script>
    <script src="{{ asset('assets/plugins/multi-select/js/jquery.multi-select.js') }}"></script>
    <script src="{{ asset('assets/plugins/jquery-spinner/js/jquery.spinner.js') }}"></script>
    <script src="{{ asset('assets/plugins/bootstrap-tagsinput/bootstrap-tagsinput.js') }}"></script>
    <script src="{{ asset('assets/plugins/nouislider/nouislider.js') }}"></script>
    <script src="{{ asset('assets/js/pages/forms/advanced-form-elements.js') }}"></script>
@endsection